package demo1;
//demo1--抽象类的简单使用

public class Test1 {
    public static void func(Person person) {
        person.doing();
    }
    public static void main(String[] args) {
        Student student = new Student("张三",18);
        System.out.println(student.name);
        System.out.println(student.age);

        func(new Student("张三",18));
       func(new Teachar("李四",36));
    }
}
